﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FinancialManagement.Models.Repository;

namespace FinancialManagement.Controllers
{
    public class ConfigController : Controller
    {
        private AccountRepository accountRepository = new AccountRepository();
        //
        // GET: /Config/

        public ActionResult Index()
        {
            var isFinancial = accountRepository.GetRoleAdminByUserID(User.Identity.Name);
            ViewData["admin"] = isFinancial;

            ViewData["UserName"] = accountRepository.GetUserNameByUserID(User.Identity.Name);

            return View();
        }

    }
}
